import 'package:hockey/jzx_apps.dart';
import 'package:hockey/pages/jzx_about_us/jzx_about_us.dart';
import 'package:hockey/pages/jzx_blacklist/jzx_blacklist.dart';
import 'package:hockey/pages/jzx_followed_list/jzx_followed_list.dart';
import 'package:hockey/pages/jzx_settings/jzx_settings.dart';
import 'package:hockey/pages/jzx_user_homepage/jzx_user_homepage.dart';
import 'package:hockey/services/jzx_user.dart';

class JzxMineController extends GetxController {
  var user = JzxUserService.to.user;

  final items = [
    _MineItem(
        title: 'My Follow',
        icon: Assets.images.icMineFollow,
        route: kRouteJzxFollowedList),
    _MineItem(
        title: 'My Articles',
        icon: Assets.images.icMineArticle,
        route: kRouteJzxUserHomepage),
    _MineItem(
        title: 'Blocklist',
        icon: Assets.images.icMineBlack,
        route: kRouteJzxBlacklist),
    _MineItem(
        title: 'Settings',
        icon: Assets.images.icMineSetting,
        route: kRouteJzxSettings),
    _MineItem(
        title: 'About',
        icon: Assets.images.icMineAbout,
        route: kRouteJzxAboutUs),
  ];
}

class _MineItem {
  final String title;
  final AssetGenImage icon;
  final String route;
  _MineItem({
    required this.title,
    required this.icon,
    required this.route,
  });
}
